<?php
session_start();
include "Includes/solotrn_sesion.php";
include "Includes/soloFun_Generales.php";
require_once "config.php";
require_once "Includes/conexion.class.php";

$co_empresa = $_SESSION["empresa"];
$co_modu = $_REQUEST["co_modu"];
$co_tran = $_REQUEST["co_tran"];
$no_tran = $_REQUEST["no_tran"];
$ds_tran = $_REQUEST["ds_tran"];
$co_usua = $_SESSION["co_usua"];
$ip = $_SERVER["REMOTE_ADDR"];

$strSql = "select max(id)+1 as maxId from solotb_logaccess";
$id = SoloFun_ExecSql($strSql, $Arreglo);
if(empty($id))
    $id = 1;

$strSql = "INSERT INTO solotb_logaccess values ($id, $co_empresa, $co_modu, $co_tran, '$co_usua', '$ip', CURRENT_TIMESTAMP, '$ds_tran')";
//echo $strSql;
SoloFun_ExecQuery($strSql);

header("Location: $no_tran");
?>